# coding: utf-8
from pathlib import Path

APP_NAME = '微软 TTS 语音合成'
APP_VERSION = '1.1.0'
YEAR = '2025'
AUTHOR = 'chiyaun'
HELP_LINK = 'https://gitee.com/chiyaun/TTSSpeechSynthesis/blob/master/README.md'
FEEDBACK_URL = 'https://gitee.com/chiyaun/TTSSpeechSynthesis/issues/new'
RELEASE_LINK = 'https://gitee.com/chiyaun/TTSSpeechSynthesis/releases'

# 项目根目录
PROJECT_DIR = Path(__file__).parent.parent
# 资源目录
RESOURCE_DIR = PROJECT_DIR / 'resource'
# 图片资源目录
IMAGE_DIR = RESOURCE_DIR / 'image'
# File 资源目录
FILE_DIR = RESOURCE_DIR / 'file'
# QSS 资源目录
QSS_DIR = RESOURCE_DIR / 'qss'
# 图标资源目录
ICON_DIR = IMAGE_DIR / 'icon'
# 单个图标资源目录
SINGLE_ICON_DIR = IMAGE_DIR / 'single'

# 应用数据目录
APP_DATA_DIR = PROJECT_DIR / 'AppData'
# 配置文件目录
CONFIG_DIR = APP_DATA_DIR / 'Config'
# 历史记录文件路径
HISTORY_FILE = CONFIG_DIR / 'history.json'
# 临时文件目录
TEMP_DIR = APP_DATA_DIR / 'Temp'

# 日志文件路径
CONFIG_FILE = CONFIG_DIR / 'config.json'

TEMP_DIR.mkdir(exist_ok=True, parents=True)
CONFIG_DIR.mkdir(exist_ok=True, parents=True)
HISTORY_FILE.touch(exist_ok=True)
